package com.ming.mallchat.common.user.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ming.mallchat.common.user.mapper.UserMapper;
import com.ming.mallchat.common.user.mapper.UserRoleMapper;
import com.ming.mallchat.common.user.pojo.User;
import com.ming.mallchat.common.user.pojo.UserRole;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleDao extends ServiceImpl<UserRoleMapper, UserRole> {

    public List<UserRole> listByUid(Long uid) {
        return lambdaQuery()
                .eq(UserRole::getUid, uid)
                .list();
    }
}
